πŸ•ΈοΈ Ada Research Browser

QUICKSTART.md
← Back

Compliance Toolkit - Quick Start Guide

πŸš€ Getting Started

Build the Application

# Build the interactive CLI
go build -o ComplianceToolkit.exe ./cmd/toolkit.go

Run the Application

# Launch the interactive menu
.\ComplianceToolkit.exe

When you launch the application, you'll see:

╔══════════════════════════════════════════════════════════════════════╗
β•‘                                                                      β•‘
β•‘   ╔═╗╔═╗╔╦╗╔═╗╦  ╦╔═╗╔╗╔╔═╗╔═╗  ╔╦╗╔═╗╔═╗╦  ╦╔═╦╔╦╗                  β•‘
β•‘   β•‘  β•‘ ║║║║╠═╝║  ║╠═╣║║║║  β•‘β•£    β•‘ β•‘ β•‘β•‘ β•‘β•‘  β• β•©β•—β•‘ β•‘                   β•‘
β•‘   β•šβ•β•β•šβ•β•β•© β•©β•©  ╩═╝╩╩ β•©β•β•šβ•β•šβ•β•β•šβ•β•   β•© β•šβ•β•β•šβ•β•β•©β•β•β•© β•©β•© β•©                   β•‘
β•‘                                                                      β•‘
β•‘                 Windows Registry Compliance Scanner                  β•‘
β•‘                          Version 1.0.0                               β•‘
β•‘                                                                      β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                            MAIN MENU                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                      β”‚
β”‚       [1]  Run Reports                                               β”‚
β”‚       [2]  View HTML Reports                                         β”‚
β”‚       [3]  View Log Files                                            β”‚
β”‚       [4]  Configuration                                             β”‚
β”‚       [5]  About                                                     β”‚
β”‚                                                                      β”‚
β”‚       [0]  Exit                                                      β”‚
β”‚                                                                      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🎯 How to Use

1. Run Reports

Option 1 β†’ Select option [1] from main menu

You'll see 6 report types:

Example:

➀ Select report: 1

⏳ Running system_info.json...

  βœ…  [os_product_name] Success
  βœ…  [os_edition] Success
  βœ…  [os_build_number] Success
  ⚠️  [registered_organization] Not found
  ...

  πŸ“Š  Results: 8 successful, 2 errors
  πŸ“„  HTML Report: output/reports/System_Information_20250104_123045.html

βœ… SUCCESS: Report completed successfully!
β„Ή INFO: Report saved to: output/reports

2. View HTML Reports

Option 2 β†’ Opens generated HTML reports in your browser

HTML Report Features: - βœ… Green checkmarks for successful reads - ❌ Red X for errors/not found - πŸ“Š Statistics dashboard - 🎨 Professional gradient design - πŸ“± Responsive layout - πŸ–¨οΈ Print-friendly

3. View Log Files

Option 3 β†’ View application logs

Log Location:

output/logs/toolkit_20250104_123045.log

4. Configuration

Option 4 β†’ View current settings

Shows: - Output directory path - Logs directory path - Operation timeout (default: 10 seconds) - Log level (INFO/DEBUG)

5. About

Option 5 β†’ Information about the toolkit

πŸ“ Output Structure

After running reports, you'll have:

lab3-registry-read/
β”œβ”€β”€ ComplianceToolkit.exe        ← Your executable
β”œβ”€β”€ output/
β”‚   β”œβ”€β”€ reports/
β”‚   β”‚   β”œβ”€β”€ System_Information_20250104_123045.html
β”‚   β”‚   β”œβ”€β”€ Security_Audit_20250104_123050.html
β”‚   β”‚   β”œβ”€β”€ Software_Inventory_20250104_123055.html
β”‚   β”‚   └── ...
β”‚   └── logs/
β”‚       └── toolkit_20250104_123045.log
β”œβ”€β”€ configs/
β”‚   └── reports/
β”‚       β”œβ”€β”€ system_info.json
β”‚       β”œβ”€β”€ security_audit.json
β”‚       └── ...

🎬 Typical Workflow

First Time Use

  1. Build the application: bash go build -o ComplianceToolkit.exe ./cmd/toolkit.go

  2. Run the toolkit: bash .\ComplianceToolkit.exe

  3. Select [1] - Run Reports

  4. Select [7] - Run ALL Reports

  5. Wait for all reports to complete (~30 seconds)

  6. Select [0] - Back to Main Menu

  7. Select [2] - View HTML Reports

  8. Select a report to open in browser

  9. Review the beautiful HTML report!

Regular Use

  1. Launch toolkit: .\ComplianceToolkit.exe
  2. Select specific report you want (e.g., Security Audit)
  3. View HTML report immediately
  4. Check logs if needed
  5. Exit when done

⚑ Quick Commands

If you prefer command-line over interactive menu:

# Build all tools
go build -o ComplianceToolkit.exe ./cmd/toolkit.go
go build -o registryreader.exe ./cmd/main.go
go build -o report_runner.exe ./cmd/report_runner.go

# Run tests
go test ./pkg/... -v

# Run specific report (non-interactive)
go run ./cmd/report_runner.go -config configs/reports/system_info.json

# Generate JSON output
go run ./cmd/report_runner.go -json > report.json

πŸ’‘ Tips & Tricks

Tip 1: Run as Administrator

Some registry keys require admin access: - Right-click Command Prompt β†’ "Run as Administrator" - Then run .\ComplianceToolkit.exe

Tip 2: Schedule Reports

Create a batch file for scheduled scanning:

@echo off
cd D:\golang-labs\lab3-registry-read
ComplianceToolkit.exe

Tip 3: Export Reports

HTML reports can be: - Printed to PDF (Ctrl+P β†’ Save as PDF) - Emailed to compliance team - Archived for audit trails

Tip 4: Quick System Check

For fast system info: 1. Launch toolkit 2. Press 1 β†’ 1 β†’ 0 β†’ 2 β†’ 1 3. System info opens in browser

πŸ› Troubleshooting

"Access Denied" Errors

Solution: Run as Administrator

"Key Not Found" Errors

Normal: Not all registry keys exist on all systems - Security audit may show missing keys (expected) - Software inventory depends on installed software

"Timeout" Errors

Solution: Increase timeout in configuration - Default is 10 seconds - Registry might be busy/slow system

HTML Report Won't Open

Solution: - Check output/reports/ directory exists - Manually open the HTML file - Check browser isn't blocking local files

πŸ“Š Understanding Report Results

βœ… Green Checkmark

❌ Red X with "Not Found"

❌ Red X with Error

🎯 Next Steps

  1. βœ… Run your first report
  2. βœ… View the HTML output
  3. βœ… Review the security audit
  4. βœ… Check software inventory
  5. βœ… Customize JSON configs for your needs

πŸ“š Additional Resources

πŸŽ‰ You're Ready!

Launch the toolkit and start scanning:

.\ComplianceToolkit.exe

Enjoy your professional compliance toolkit! πŸš€